var $path_url = $('base').attr('href');
var controller = $('base').attr('data-controller');


function getSearchUser() {
    var dados = $('#formSearchBenef').serialize();
    $.ajax({
        type: 'POST',
        url: $path_url + controller + '/getDadosUsuario/',
        data: dados,
        beforeSend: function(){
            $('.overlay').show();
            $('.loading-img').show();
        },
        success: function(data){
            $('.box-benef').html('').html(data);
        },
        error: function(){
            alert("Erro! Contate o setor de TI!");
        },
        complete: function(){
            $('.overlay').hide();
            $('.loading-img').hide();
        }
    });
}